package com.it;

//测试类
public class ExtendsText {
    public static void main(String[] args) {
        Student student = new Student("zg", 18, "安徽", "java20240328", "001");
        student.eat();
        student.sleep();
        student.sayHi();
        student.study();
        System.out.println("-------------");

        Teacher teacher = new Teacher("ll", 19, "山东", 10000.0);
        teacher.eat();
        teacher.sleep();
        teacher.sayHi();
        teacher.teach();
        System.out.println("-------------");

        Doctor doctor = new Doctor("ss", 20, "北京", "hello");
        doctor.eat();
        doctor.sleep();
        doctor.sayHi();
        doctor.cut();


    }
}
